package com.kb.erp.entity.quote;

import lombok.Data;




@Data
public class BaseResult<T>{

    private Integer status;
    private String msg;
    private T data;



    //正常返回不带数据
    public BaseResult() {
        this.status=0;
        this.msg="操作成功";
    }
    //正常返回数据
    public BaseResult(T data) {
        this.data = data;
        this.status = 0;
        this.msg = "";
    }

    //异常处理
    public BaseResult(Integer i, String msg) {
        this.status=i;
        this.msg=msg;
    }
}
